package cn.pattern.demo3;

/**
 * @auth wzy
 * @date 2023/10/10 15:51
 */
public class ProxyBuyer implements Buyer {

    private Buyer target;

    public ProxyBuyer(Buyer target) {
        this.target = target;
    }

    @Override
    public void buyHouse() {
        System.out.println("ProxyBuyer看房前。。。");
        target.buyHouse();
        System.out.println("ProxyBuyer看房后。。。");

    }
}
